﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cadastros/Site.Master" AutoEventWireup="true" CodeBehind="Agenda.aspx.cs" Inherits="CongregacaoOs.WebForm.Cadastros.Agenda" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">

        $(document).ready(function () {
            $("#accordion").accordion({
                collapsible: true,
                autoHeight: false,
                navigation: true
            });
        });
    </script>
    <style type="text/css">
        .auto-style1 {
            width: 95px;
        }

        .auto-style2 {
            width: 291px;
        }

        .auto-style3 {
            width: 58px;
        }
    </style>
    <link href="../Content/NewTheme/gridView.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div id="accordion">
        <h3><a href="#">Agenda</a></h3>
        <div>
            <asp:UpdatePanel runat="server" ID="pnlAtualizar">
                <ContentTemplate>
                    <asp:Panel runat="server" ID="pnlAgenda" Style="width: 70%; margin: 0 auto;">
                        <h2>Contatos</h2>
                        <hr />
                        <br />
                        <table style="width: 100%">
                            <tr>
                                <td>Nome:
                                    <br />
                                    <asp:TextBox ID="txtBuscarNome" Width="100%" runat="server"></asp:TextBox>

                                </td>
                            </tr>
                            <tr>
                                <td>Regional:<br />
                                    <asp:DropDownList ID="dropRegionalFiltro" DataTextField="regional" DataValueField="idRegional" runat="server" AutoPostBack="True" Width="300px" Style="margin-left: 0px" OnSelectedIndexChanged="dropRegionalFiltro_SelectedIndexChanged" OnDataBound="dropRegionalFiltro_DataBound">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>Distrital:<br />
                                    <asp:DropDownList ID="dropDistritalFiltro" DataTextField="distrital" DataValueField="idDistrital" runat="server" AutoPostBack="True" Width="300px" OnSelectedIndexChanged="dropDistritalFiltro_SelectedIndexChanged" OnDataBound="dropDistritalFiltro_DataBound"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>Administração:<br />
                                    <asp:DropDownList ID="dropAdmFiltro" DataTextField="adm" DataValueField="idAdm" runat="server" Height="22px" Width="300px" AutoPostBack="True" OnSelectedIndexChanged="dropAdmFiltro_SelectedIndexChanged" OnDataBound="dropAdmFiltro_DataBound"></asp:DropDownList>
                                </td>

                            </tr>
                            <tr>
                                <td>Setores:<br />
                                    <asp:DropDownList ID="dropSetorFiltro" DataTextField="nome" DataValueField="idSetor" runat="server" Height="22px" Width="300px" AutoPostBack="True" OnSelectedIndexChanged="dropSetorFiltro_SelectedIndexChanged" OnDataBound="dropSetorFiltro_DataBound"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>Status:<br />
                                    <asp:RadioButtonList Font-Size="Medium" AutoPostBack="true" ID="radioStatusUsu" runat="server" RepeatDirection="Horizontal" CellSpacing="5" OnSelectedIndexChanged="radioStatusUsu_SelectedIndexChanged">
                                        <asp:ListItem Value="0" Selected="True">Todos</asp:ListItem>
                                        <asp:ListItem Value="1">Ativos</asp:ListItem>
                                        <asp:ListItem Value="2">Inativos</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    <br />
                                    <hr />
                                    <asp:GridView ID="gvServo" runat="server" Style="font-size: smaller;"
                                        AutoGenerateColumns="False"
                                        GridLines="None"
                                        AllowPaging="True"
                                        CssClass="mGrid"
                                        PagerStyle-CssClass="pgr"
                                        AlternatingRowStyle-CssClass="alt" OnPageIndexChanging="gvServo_PageIndexChanging" PageSize="7" AllowSorting="True" ShowFooter="True" ShowHeaderWhenEmpty="True" ToolTip="Usuários">
                                        <AlternatingRowStyle CssClass="alt" />
                                        <Columns>
                                            <asp:BoundField DataField="Servo" HeaderText="Nome" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="left" HtmlEncode="False">
                                                <ItemStyle Width="27%" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Email" HeaderText="Email" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HtmlEncode="False">
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle Width="25%" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Celular" HeaderText="Celular" HeaderStyle-HorizontalAlign="Left" HtmlEncode="False">
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle Width="17%" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Fone" HeaderText="Telefone" HeaderStyle-HorizontalAlign="Left" HtmlEncode="false">
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle Width="17%" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="Cidade" HeaderText="Cidade" HeaderStyle-HorizontalAlign="Left" HtmlEncode="false">
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle Width="20%" />
                                            </asp:BoundField>

                                        </Columns>
                                        <EmptyDataTemplate>
                                            Nenhum registro encontrado...
                                        </EmptyDataTemplate>
                                        <PagerStyle CssClass="pgr" />
                                    </asp:GridView>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnBuscar" Width="100px" Height="50px" runat="server" Text="Buscar" OnClick="btnBuscar_Click" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
</asp:Content>
